{% extends "base.html" %} {% block content %}
<h2 class="mb-4">注册</h2>
<div class="row">
  <div class="col-md-6">
    <form method="POST">
      <div class="mb-3">
        <label for="username" class="form-label">用户名</label>
        <input
          type="text"
          class="form-control"
          id="username"
          name="username"
          required
        />
      </div>
      <div class="mb-3">
        <label for="email" class="form-label">邮箱</label>
        <input
          type="email"
          class="form-control"
          id="email"
          name="email"
          required
        />
      </div>
      <div class="mb-3">
        <label for="password" class="form-label">密码</label>
        <input
          type="password"
          class="form-control"
          id="password"
          name="password"
          required
        />
      </div>
      <button type="submit" class="btn btn-primary">注册</button>
    </form>
    <p class="mt-3">已有账号？<a href="{{ url_for('login') }}">登录</a></p>
  </div>
</div>
{% endblock %}
